glx: Remove Visual cache
authorBenjamin Otte <otte@redhat.com>
Sat, 12 Jun 2021 09:13:22 +0000 (11:13 +0200)
committerBenjamin Otte <otte@redhat.com>
Thu, 22 Jul 2021 14:06:05 +0000 (16:06 +0200)
commit62bac44a2108ceadbf659ce56f64bf14429fc5d2
tree866336c919ba29a513c6976b4c1e454fc8f8b38e
parent0ddd06113dcbd6938e5207081945671c998cdde5
glx: Remove Visual cache

1. We're using EGL most of the time anyway, so if we wanted to cache
   things, we'd need to port it there.
2. Our GL handling is massively configurable, so determining when to use
   the cache and when not is a challenge.
3. It makes startup nondeterministic and depend on whether a GTK4 app
   has previously been started on this display and nobody thinks about
   that when debugging.
4. The only benefit of the caching is delaying GL initialization - which
   made sense in GTK3 where almost no app used GL but doesn't make sense
   in GTK4 where almost every app uses GL.

So unless I find a big benefit to reintroducing it, this cache will be
gone for good.
gdk/x11/gdkglcontext-glx.c